#include "myhead.h"

int main()
{   
    int fd1,i,j;
    int red = 0x00ff00000;
    int orange = 0x00FFA500;
    int yellow = 0x00FFFF00;
    int green = 0x0000FF00; 
    int cyan = 0x0000FFFF;
    int blue = 0x000000ff;
    int purple = 0x00800080;
    
    fd1 = open("/dev/fb0",O_RDWR);
        if (fd1 == -1)
        {
            printf("打开失败!!!\n");
        }
    
    mmap(NULL,800*480*4,PROT_READ | PROT_WRITE,MAP_SHARED,fd1,0);
        for (;;)
        {
            for ( i = 0; i < 480; i++)
            {
                
            
            }
    
        }
    close(fd1);
    return 0;
}